<ui:composition 
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:c="http://java.sun.com/jsp/jstl/core">
    
    <f:subview id="header">
            <!--<img style="position:absolute;width:100%;height:20%;background-image:url(img_header.png);"  ></img>-->
        <h:form> 
            <table WIDTH='100%'>
                <tr >
                    <th style="text-align: left">
                        <a href="index.xhtml"><h1>Librairie Store</h1></a>
                    </th>          
                </tr>
                
                
                <tr  weight="25">
                </tr>
                
                
                <tr>
                    
                <th style="text-align: left">

                </th>
                    
                <th  hidden="true">
                    <p:commandButton value="hidden"/>
                </th> 

                <th  weight="25">
                   <ui:include src="Form_login.xhtml" />
               </th>
                </tr>
         
            </table>
           
            <!--Si mon user est logger en tant que libraire-->      
            <p:menubar >  
                <p:submenu label="Administration" rendered="#{loginBean.authenticatedUserType == 'Libraire'}" >
                    <p:menuitem value="Administration des livre" url="#{navigation.Admin_livre()}" />  
                    <p:menuitem value="Controler les stocks" url="#{navigation.Admin_Controle_Stock()}" />
                    <p:menuitem value="Suivi commandes" url="#{navigation.Admin_Suivi_Commande()}" />  
                </p:submenu> 
                <p:menuitem value="Profil" url="#{navigation.Profil()}" rendered="#{loginBean.authenticatedUserType == 'Utilisateur'}"/>
                <p:menuitem value="Catalogue" url="#{navigation.Catalogue()}" />
                <p:menuitem value="Panier" url="#{navigation.panier()}" />
            </p:menubar>  
          
            
        </h:form>      
            <br/>

    </f:subview> 
</ui:composition>